package com.Lixiaoqian.CardPlay.utils;

import android.app.Activity;
import android.widget.ImageView;

import com.Lixiaoqian.CardPlay.R;
import com.bumptech.glide.Glide;

/**
 * Created by HuangZhiBo on 2017/3/27/027.
 */

public class LoadImageView {
    /**
     * 加载用户图像
     * @param activity
     * @param imgurl
     * @param imageView
     */
    public static void LoadImgUser(Activity activity,String imgurl, ImageView imageView){
        Glide.with(activity).load(imgurl).error(R.mipmap.ic2_menu_head).into(imageView);
    }

    public static void LoadImg(Activity activity,String imgurl, ImageView imageView){
        Glide.with(activity).load(imgurl).error(R.mipmap.load_error).into(imageView);
    }
}
